 //动态设置侧边栏滚动
 $(function () {
    var offset_top = $('.right_nav').offset().top; //获取右侧导航距离顶部的高度
    var begin = 0,
       end = 0,
       timer = null;
    $('.right_nav li:last').hide(); //先将回到顶部隐藏
    $('.infolst').scroll(function (evt) {
       clearInterval(timer);
       var scroll_top = $('.infolst').scrollTop();
       end = offset_top + scroll_top;
       scroll_top > 100 ? $('.right_nav li:last').fadeIn() : $('.right_nav li:last').fadeOut(); //滚动距离判断是否显示回到顶部

       timer = setInterval(function () { //滚动定时器
          begin = begin + (end - begin) * 0.2;
          if (Math.round(begin) === end) {
             clearInterval(timer);
          }
       }, 10);
    });
 });
 $("#topflag").hover(function () {
      console.log("悬浮")
       var thisObj = $(this);
       tempS = setTimeout(function () {
          thisObj.find("li").each(function (i) {
             var tA = $(this);
             setTimeout(function () {
                tA.animate({
                   right: "0"
                }, 200);
             }, 50 * i);
          });
       }, 200);
    },
    function () {
       if (tempS) {
          clearTimeout(tempS);
       }
       $(this).find("li").each(function (i) {
          var tA = $(this);
          setTimeout(function () {
             tA.animate({
                right: "-70"
             }, 200, function () {});
          }, 50 * i);
       });
    });

 //右侧导航点击事件


 function func1() {
    console.log("点击")
    $('.infolst').animate({
       scrollTop: 0
    }, 400);
 }
